class CategoriesController < ApplicationController
    
  def show
    @category = Category.find(params[:id], :include => :posts)
  end
  
  def index
    @reservations = Reservation.find(:all, :conditions => ['reservations.end_date > ? AND state = ?', Time.now - 14.hours, 'paid'], :order => 'start_date ASC', :include => [:member, :post], :limit => 20)
    @categories = Category.find(:all)
  end
  
end
